/*

Copyright 2007 Renaun Erickson (http://renaun.com)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

@ignore
*/
package asfslib.api.familytree.v1
{
	
/**
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="personReference">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="age" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *       &lt;/sequence>
 *       &lt;attribute name="ref" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       &lt;attribute name="role" type="{http://api.familysearch.org/familytree/v1}role" />
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
public class PersonReference 
{

    //----------------------------------
    //  age
    //----------------------------------

    /**
     *  @private
     *  Storage for the age property.
     */
    private var _age:String = "";

    /**
     *  The age property
     *
     *  @default  = ""
     */
    public function get age():String
    {
        return _age;
    }

    /**
     *  @private
     */
    public function set age(value:String):void
    {
        _age = value;
    }


    //----------------------------------
    //  ref
    //----------------------------------

    /**
     *  @private
     *  Storage for the ref property.
     */
    private var _ref:String = "";

    /**
     *  The ref property
     *
     *  @default  = ""
     */
    public function get ref():String
    {
        return _ref;
    }

    /**
     *  @private
     */
    public function set ref(value:String):void
    {
        _ref = value;
    }


    //----------------------------------
    //  role
    //----------------------------------

    /**
     *  @private
     *  Storage for the role property.
     */
    private var _role:Role;

    /**
     *  The role property
     *
     *  @default 
     */
    public function get role():Role
    {
        return _role;
    }

    /**
     *  @private
     */
    public function set role(value:Role):void
    {
        _role = value;
    }
    
    //----------------------------------
    //
    //  Methods
    //
    //----------------------------------
	
	/**
	 * 	Make a clone of this instance
	 */
    public function clone():PersonReference
    {
		var clone:PersonReference = new PersonReference();
        clone.age = age;
        clone.ref = ref;
        clone.role = role;
        return clone;
    }	
}
}
